package customer

import (
	"counter-help/admin/server/global"
	"time"
)

// PageView 页面访问记录表
type PageView struct {
	global.GVA_MODEL
	IP        string    `json:"ip" gorm:"column:ip;comment:访问者IP"`
	Path      string    `json:"path" gorm:"column:path;comment:访问路径"`
	UserAgent string    `json:"userAgent" gorm:"column:user_agent;comment:用户代理"`
	LastView  time.Time `json:"lastView" gorm:"column:last_view;comment:最后访问时间"`
}

func (PageView) TableName() string {
	return "page_views"
}
